[INFO] cloning repository https://github.com/Ki11erRabbit/rsh
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ki11erRabbit/rsh" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 607bc8223a8046d774aa7ffecfb87724c5480a02
[INFO] fixing Ki11erRabbit/rsh against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKi11erRabbit%2Frsh" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Ki11erRabbit/rsh
[INFO] finished tweaking git repo https://github.com/Ki11erRabbit/rsh
[INFO] tweaked toml for git repo https://github.com/Ki11erRabbit/rsh written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Ki11erRabbit/rsh on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Ki11erRabbit/rsh already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 98 packages to latest compatible versions
[INFO] [stderr]       Adding android_system_properties v0.1.5
[INFO] [stderr]       Adding arrayvec v0.7.7
[INFO] [stderr]       Adding beef v0.5.2
[INFO] [stderr]       Adding bitflags v2.13.0
[INFO] [stderr]       Adding bumpalo v3.20.3
[INFO] [stderr]       Adding chrono v0.4.45
[INFO] [stderr]       Adding clipboard-win v4.5.0
[INFO] [stderr]       Adding core-foundation-sys v0.8.7
[INFO] [stderr]       Adding crossbeam v0.8.4
[INFO] [stderr]       Adding crossbeam-channel v0.5.15
[INFO] [stderr]       Adding crossbeam-deque v0.8.6
[INFO] [stderr]       Adding crossbeam-epoch v0.9.18
[INFO] [stderr]       Adding crossbeam-queue v0.3.12
[INFO] [stderr]       Adding crossbeam-utils v0.8.21
[INFO] [stderr]       Adding darling v0.14.4
[INFO] [stderr]       Adding darling_core v0.14.4
[INFO] [stderr]       Adding darling_macro v0.14.4
[INFO] [stderr]       Adding defer-drop v1.3.0
[INFO] [stderr]       Adding deranged v0.5.8
[INFO] [stderr]       Adding derive_builder v0.11.2
[INFO] [stderr]       Adding derive_builder_core v0.11.2
[INFO] [stderr]       Adding derive_builder_macro v0.11.2
[INFO] [stderr]       Adding endian-type v0.1.2
[INFO] [stderr]       Adding errno v0.3.14
[INFO] [stderr]       Adding error-code v2.3.1
[INFO] [stderr]       Adding fd-lock v3.0.13
[INFO] [stderr]       Adding fnv v1.0.7
[INFO] [stderr]       Adding futures-core v0.3.32
[INFO] [stderr]       Adding futures-task v0.3.32
[INFO] [stderr]       Adding futures-util v0.3.32
[INFO] [stderr]       Adding fuzzy-matcher v0.3.7
[INFO] [stderr]       Adding iana-time-zone v0.1.65
[INFO] [stderr]       Adding iana-time-zone-haiku v0.1.2
[INFO] [stderr]       Adding ident_case v1.0.1
[INFO] [stderr]       Adding js-sys v0.3.102
[INFO] [stderr]     Updating libc v0.2.139 -> v0.2.186
[INFO] [stderr]       Adding linux-raw-sys v0.4.15
[INFO] [stderr]       Adding memoffset v0.6.5
[INFO] [stderr]       Adding nibble_vec v0.1.0
[INFO] [stderr]       Adding nix v0.24.3
[INFO] [stderr]       Adding nix v0.25.1
[INFO] [stderr]       Adding num-conv v0.2.2
[INFO] [stderr]       Adding num-traits v0.2.19
[INFO] [stderr]       Adding pin-project-lite v0.2.17
[INFO] [stderr]       Adding powerfmt v0.2.0
[INFO] [stderr]     Updating proc-macro2 v1.0.51 -> v1.0.106
[INFO] [stderr]     Updating quote v1.0.23 -> v1.0.46
[INFO] [stderr]       Adding radix_trie v0.2.1
[INFO] [stderr]       Adding rayon v1.12.0
[INFO] [stderr]       Adding rayon-core v1.13.0
[INFO] [stderr]       Adding rustix v0.38.44
[INFO] [stderr]     Updating rustyline v5.0.6 -> v11.0.0 (available: v18.0.0)
[INFO] [stderr]       Adding rustyline-derive v0.8.0
[INFO] [stderr]       Adding serde_core v1.0.228
[INFO] [stderr]       Adding serde_derive v1.0.228
[INFO] [stderr]       Adding skim v0.10.4
[INFO] [stderr]       Adding slab v0.4.12
[INFO] [stderr]       Adding str-buf v1.0.6
[INFO] [stderr]       Adding strsim v0.10.0
[INFO] [stderr]       Adding syn v2.0.118
[INFO] [stderr]       Adding thread_local v1.1.9
[INFO] [stderr]       Adding time v0.3.51
[INFO] [stderr]       Adding time-core v0.1.9
[INFO] [stderr]       Adding timer v0.2.0
[INFO] [stderr]       Adding tuikit v0.5.0
[INFO] [stderr]     Updating utf8parse v0.1.1 -> v0.2.2
[INFO] [stderr]       Adding vte v0.11.1
[INFO] [stderr]       Adding vte_generate_state_changes v0.1.2
[INFO] [stderr]       Adding wasm-bindgen v0.2.125
[INFO] [stderr]       Adding wasm-bindgen-macro v0.2.125
[INFO] [stderr]       Adding wasm-bindgen-macro-support v0.2.125
[INFO] [stderr]       Adding wasm-bindgen-shared v0.2.125
[INFO] [stderr]       Adding windows-core v0.62.2
[INFO] [stderr]       Adding windows-implement v0.60.2
[INFO] [stderr]       Adding windows-interface v0.59.3
[INFO] [stderr]       Adding windows-link v0.2.1
[INFO] [stderr]       Adding windows-result v0.4.1
[INFO] [stderr]       Adding windows-strings v0.5.1
[INFO] [stderr]       Adding windows-sys v0.48.0
[INFO] [stderr]       Adding windows-sys v0.59.0
[INFO] [stderr]       Adding windows-sys v0.61.2
[INFO] [stderr]       Adding windows-targets v0.48.5
[INFO] [stderr]       Adding windows-targets v0.52.6
[INFO] [stderr]       Adding windows_aarch64_gnullvm v0.48.5
[INFO] [stderr]       Adding windows_aarch64_gnullvm v0.52.6
[INFO] [stderr]       Adding windows_aarch64_msvc v0.48.5
[INFO] [stderr]       Adding windows_aarch64_msvc v0.52.6
[INFO] [stderr]       Adding windows_i686_gnu v0.48.5
[INFO] [stderr]       Adding windows_i686_gnu v0.52.6
[INFO] [stderr]       Adding windows_i686_gnullvm v0.52.6
[INFO] [stderr]       Adding windows_i686_msvc v0.48.5
[INFO] [stderr]       Adding windows_i686_msvc v0.52.6
[INFO] [stderr]       Adding windows_x86_64_gnu v0.48.5
[INFO] [stderr]       Adding windows_x86_64_gnu v0.52.6
[INFO] [stderr]       Adding windows_x86_64_gnullvm v0.48.5
[INFO] [stderr]       Adding windows_x86_64_gnullvm v0.52.6
[INFO] [stderr]       Adding windows_x86_64_msvc v0.48.5
[INFO] [stderr]       Adding windows_x86_64_msvc v0.52.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c
[INFO] running `Command { std: "docker" "start" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling unicode-ident v1.0.6
[INFO] [stderr]    Compiling quote v1.0.46
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling thiserror v1.0.38
[INFO] [stderr]    Compiling ucd-trie v0.1.5
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling indexmap v1.9.2
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling dirs-sys-next v0.1.2
[INFO] [stderr]    Compiling smallvec v1.10.0
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling siphasher v0.3.10
[INFO] [stderr]    Compiling regex-syntax v0.6.28
[INFO] [stderr]    Compiling rayon-core v1.13.0
[INFO] [stderr]    Compiling phf_shared v0.10.0
[INFO] [stderr]     Checking dirs-next v2.0.0
[INFO] [stderr]     Checking crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling memoffset v0.7.1
[INFO] [stderr]    Compiling once_cell v1.17.1
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling either v1.8.1
[INFO] [stderr]    Compiling fixedbitset v0.4.2
[INFO] [stderr]    Compiling bit-vec v0.6.3
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.4
[INFO] [stderr]    Compiling term v0.7.0
[INFO] [stderr]    Compiling ena v0.14.1
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling bit-set v0.5.3
[INFO] [stderr]    Compiling aho-corasick v0.7.20
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling petgraph v0.6.3
[INFO] [stderr]     Checking nix v0.24.3
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]     Checking crossbeam-queue v0.3.12
[INFO] [stderr]     Checking thread_local v1.1.9
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]    Compiling pico-args v0.4.2
[INFO] [stderr]    Compiling string_cache v0.8.6
[INFO] [stderr]    Compiling ascii-canvas v3.0.0
[INFO] [stderr]     Checking powerfmt v0.2.0
[INFO] [stderr]    Compiling const_fn v0.4.9
[INFO] [stderr]     Checking chrono v0.4.45
[INFO] [stderr]    Compiling vte_generate_state_changes v0.1.2
[INFO] [stderr]     Checking bitflags v2.13.0
[INFO] [stderr]     Checking num-conv v0.2.2
[INFO] [stderr]     Checking linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]     Checking deranged v0.5.8
[INFO] [stderr]     Checking unicode-width v0.1.10
[INFO] [stderr]     Checking arrayvec v0.7.7
[INFO] [stderr]     Checking time-core v0.1.9
[INFO] [stderr]     Checking nibble_vec v0.1.0
[INFO] [stderr]     Checking rayon v1.12.0
[INFO] [stderr]     Checking defer-drop v1.3.0
[INFO] [stderr]     Checking fuzzy-matcher v0.3.7
[INFO] [stderr]     Checking crossbeam v0.8.4
[INFO] [stderr]     Checking nix v0.25.1
[INFO] [stderr]     Checking beef v0.5.2
[INFO] [stderr]    Compiling signal-hook v0.3.15
[INFO] [stderr]     Checking endian-type v0.1.2
[INFO] [stderr]     Checking nix v0.26.2
[INFO] [stderr]     Checking vte v0.11.1
[INFO] [stderr]     Checking radix_trie v0.2.1
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking tuikit v0.5.0
[INFO] [stderr]    Compiling regex v1.7.1
[INFO] [stderr]     Checking timer v0.2.0
[INFO] [stderr]     Checking unicode-segmentation v1.10.1
[INFO] [stderr]     Checking fragile v2.0.0
[INFO] [stderr]     Checking lalrpop-util v0.19.8
[INFO] [stderr]     Checking time v0.3.51
[INFO] [stderr]    Compiling lalrpop v0.19.8
[INFO] [stderr]     Checking fd-lock v3.0.13
[INFO] [stderr]    Compiling darling_core v0.14.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]    Compiling rustyline-derive v0.8.0
[INFO] [stderr]    Compiling pest v2.5.5
[INFO] [stderr]    Compiling darling_macro v0.14.4
[INFO] [stderr]    Compiling darling v0.14.4
[INFO] [stderr]    Compiling derive_builder_core v0.11.2
[INFO] [stderr]    Compiling derive_builder_macro v0.11.2
[INFO] [stderr]    Compiling semver-parser v0.10.2
[INFO] [stderr]     Checking derive_builder v0.11.2
[INFO] [stderr]     Checking skim v0.10.4
[INFO] [stderr]    Compiling semver v0.11.0
[INFO] [stderr]    Compiling rustc_version v0.3.3
[INFO] [stderr]     Checking rustyline v11.0.0
[INFO] [stderr]    Compiling likely_stable v0.1.2
[INFO] [stderr]    Compiling rsh v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating build.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed src/builtins.rs (1 fix)
[INFO] [stderr]        Fixed src/eval.rs (1 fix)
[INFO] [stderr]        Fixed src/var.rs (16 fixes)
[INFO] [stderr]        Fixed src/context.rs (1 fix)
[INFO] [stdout] warning: relative drop order changing in Rust 2024
[INFO] [stdout]    --> src/builtins.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     context.borrow().get_var("0").unwrap().borrow().value.clone()
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this temporary value will be dropped at the end of the block
[INFO] [stdout]     |                     a temporary with access to the borrow is created here ...
[INFO] [stdout] 325 |                 };
[INFO] [stdout]     |                  - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, context::Var>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: the temporary is part of an expression at the end of a block;
[INFO] [stdout]             consider forcing this temporary to be dropped sooner, before the block's local variables are dropped
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/temporary-tail-expr-scope.html>
[INFO] [stdout]     = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     let x = context.borrow().get_var("0").unwrap().borrow().value.clone(); x
[INFO] [stdout]     |                     +++++++                                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         FORKED.store(state, std::sync::atomic::Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         FORKED.load(std::sync::atomic::Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:26:48
[INFO] [stdout]    |
[INFO] [stdout] 26 |         WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap()
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         EXIT_STATUS.store(status, Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         EXIT_STATUS.load(Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |         BLOCK_SIGNALS.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  38 - static mut BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  38 + static BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |         GOT_SIGCHLD.store(val, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         GOT_SIGCHLD.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:189:13
[INFO] [stdout]     |
[INFO] [stdout] 189 |             GOT_SIGCHLD.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:211:17
[INFO] [stdout]     |
[INFO] [stdout] 211 |             if !SUPRESS_SIGINT.load(Ordering::Relaxed) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  34 - static mut SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  34 + static SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:214:13
[INFO] [stdout]     |
[INFO] [stdout] 214 |             SIGINT_PENDING.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         SIGINT_PENDING.store(false, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> src/log.rs:7:2
[INFO] [stdout]   |
[INFO] [stdout] 7 |     PRINT_OUT.store(value, Ordering::Relaxed);
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]   |
[INFO] [stdout] 3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/log.rs:13:2
[INFO] [stdout]    |
[INFO] [stdout] 13 |     PRINT_OUT.load(Ordering::Relaxed)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout]  3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.87s
[INFO] [stdout] warning: relative drop order changing in Rust 2024
[INFO] [stdout]    --> src/builtins.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     context.borrow().get_var("0").unwrap().borrow().value.clone()
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this temporary value will be dropped at the end of the block
[INFO] [stdout]     |                     a temporary with access to the borrow is created here ...
[INFO] [stdout] 325 |                 };
[INFO] [stdout]     |                  - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, context::Var>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: the temporary is part of an expression at the end of a block;
[INFO] [stdout]             consider forcing this temporary to be dropped sooner, before the block's local variables are dropped
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/temporary-tail-expr-scope.html>
[INFO] [stdout]     = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     let x = context.borrow().get_var("0").unwrap().borrow().value.clone(); x
[INFO] [stdout]     |                     +++++++                                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         FORKED.store(state, std::sync::atomic::Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         FORKED.load(std::sync::atomic::Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:26:48
[INFO] [stdout]    |
[INFO] [stdout] 26 |         WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap()
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         EXIT_STATUS.store(status, Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         EXIT_STATUS.load(Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |         BLOCK_SIGNALS.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  38 - static mut BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  38 + static BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |         GOT_SIGCHLD.store(val, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         GOT_SIGCHLD.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:189:13
[INFO] [stdout]     |
[INFO] [stdout] 189 |             GOT_SIGCHLD.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:211:17
[INFO] [stdout]     |
[INFO] [stdout] 211 |             if !SUPRESS_SIGINT.load(Ordering::Relaxed) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  34 - static mut SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  34 + static SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:214:13
[INFO] [stdout]     |
[INFO] [stdout] 214 |             SIGINT_PENDING.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         SIGINT_PENDING.store(false, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]  --> src/log.rs:7:2
[INFO] [stdout]   |
[INFO] [stdout] 7 |     PRINT_OUT.store(value, Ordering::Relaxed);
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]   |
[INFO] [stdout] 3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/log.rs:13:2
[INFO] [stdout]    |
[INFO] [stdout] 13 |     PRINT_OUT.load(Ordering::Relaxed)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout]  3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.19.8
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4`
[INFO] [stderr] crater-edition-check: rsh v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]    Compiling rsh v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `nix::sys::signal::Signal`
[INFO] [stdout]   --> src/shell.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use nix::sys::signal::Signal;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::os::raw::c_int`
[INFO] [stdout]   --> src/shell.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::os::raw::c_int;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `VarData`
[INFO] [stdout]   --> src/shell.rs:16:18
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils};
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shell`
[INFO] [stdout]  --> src/completion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shell;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rustyline::completion::FilenameCompleter`
[INFO] [stdout]  --> src/completion.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rustyline::completion::FilenameCompleter;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/ast.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{Read, Write};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::str::Split`
[INFO] [stdout]   --> src/ast.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use core::str::Split;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::log`
[INFO] [stdout]   --> src/eval.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::log;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `set_exit_status`
[INFO] [stdout]   --> src/jobs.rs:11:36
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::eval::{get_exit_status, set_exit_status};
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/trap.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self,Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fragile::Fragile`
[INFO] [stdout]   --> src/trap.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use fragile::Fragile;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `JobState`
[INFO] [stdout]   --> src/trap.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::jobs::{self,JobState};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shell::ShellJobUtils`
[INFO] [stdout]   --> src/trap.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::shell::ShellJobUtils;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]   --> src/main.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::io;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::errno::Errno`
[INFO] [stdout]   --> src/main.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | use nix::errno::Errno;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::sys::signal::Signal`
[INFO] [stdout]   --> src/shell.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use nix::sys::signal::Signal;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::os::raw::c_int`
[INFO] [stdout]   --> src/shell.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::os::raw::c_int;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `VarData`
[INFO] [stdout]   --> src/shell.rs:16:18
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils};
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shell`
[INFO] [stdout]  --> src/completion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::shell;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rustyline::completion::FilenameCompleter`
[INFO] [stdout]  --> src/completion.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rustyline::completion::FilenameCompleter;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/ast.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{Read, Write};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::str::Split`
[INFO] [stdout]   --> src/ast.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use core::str::Split;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::__parse__CompleteCommand::CompleteCommandParser`
[INFO] [stdout]     --> /opt/rustwide/target/debug/build/rsh-1ab95f0d50d6d3b3/out/grammar.rs:2680:9
[INFO] [stdout]      |
[INFO] [stdout] 2680 | pub use self::__parse__CompleteCommand::CompleteCommandParser;
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::log`
[INFO] [stdout]   --> src/eval.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::log;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `set_exit_status`
[INFO] [stdout]   --> src/jobs.rs:11:36
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::eval::{get_exit_status, set_exit_status};
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/trap.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self,Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fragile::Fragile`
[INFO] [stdout]   --> src/trap.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use fragile::Fragile;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `JobState`
[INFO] [stdout]   --> src/trap.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::jobs::{self,JobState};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shell::ShellJobUtils`
[INFO] [stdout]   --> src/trap.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::shell::ShellJobUtils;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]   --> src/main.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::io;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::errno::Errno`
[INFO] [stdout]   --> src/main.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | use nix::errno::Errno;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/trap.rs:423:5
[INFO] [stdout]     |
[INFO] [stdout] 422 |       return;
[INFO] [stdout]     |       ------ any code following this expression is unreachable
[INFO] [stdout] 423 | /     while get_pending_signal().is_none() {
[INFO] [stdout] 424 | |         //do nothing
[INFO] [stdout] 425 | |     }
[INFO] [stdout]     | |_____^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `VarDataUtils`
[INFO] [stdout]   --> src/shell.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils};
[INFO] [stdout]    |                           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/completion.rs:83:53
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn complete_cmd_unsorted(&self, line: &str, pos: usize) -> Result<(usize,Vec<Pair>)> {
[INFO] [stdout]    |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/context.rs:288:17
[INFO] [stdout]     |
[INFO] [stdout] 288 |             let mut var = context.borrow_mut().get_var(name);
[INFO] [stdout]     |                 ----^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `func`
[INFO] [stdout]    --> src/context.rs:477:21
[INFO] [stdout]     |
[INFO] [stdout] 477 |         if let Some(func) = self.functions.remove(name) {
[INFO] [stdout]     |                     ^^^^ help: if this is intentional, prefix it with an underscore: `_func`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:530:13
[INFO] [stdout]     |
[INFO] [stdout] 530 |         let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:553:13
[INFO] [stdout]     |
[INFO] [stdout] 553 |         let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:577:13
[INFO] [stdout]     |
[INFO] [stdout] 577 |         let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:594:13
[INFO] [stdout]     |
[INFO] [stdout] 594 |         let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `end`
[INFO] [stdout]   --> src/lexer.rs:17:49
[INFO] [stdout]    |
[INFO] [stdout] 17 |             Error::UnrecognizedChar(start, chr, end) => {
[INFO] [stdout]    |                                                 ^^^ help: if this is intentional, prefix it with an underscore: `_end`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/trap.rs:423:5
[INFO] [stdout]     |
[INFO] [stdout] 422 |       return;
[INFO] [stdout]     |       ------ any code following this expression is unreachable
[INFO] [stdout] 423 | /     while get_pending_signal().is_none() {
[INFO] [stdout] 424 | |         //do nothing
[INFO] [stdout] 425 | |     }
[INFO] [stdout]     | |_____^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `end` is never read
[INFO] [stdout]    --> src/ast.rs:216:23
[INFO] [stdout]     |
[INFO] [stdout] 216 |         let mut end = 0;
[INFO] [stdout]     |                       ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 226 |                         end = i;
[INFO] [stdout]     |                         ------- `end` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `VarDataUtils`
[INFO] [stdout]   --> src/shell.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::var::{VarData, VarDataUtils};
[INFO] [stdout]    |                           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/completion.rs:83:53
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn complete_cmd_unsorted(&self, line: &str, pos: usize) -> Result<(usize,Vec<Pair>)> {
[INFO] [stdout]    |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/context.rs:288:17
[INFO] [stdout]     |
[INFO] [stdout] 288 |             let mut var = context.borrow_mut().get_var(name);
[INFO] [stdout]     |                 ----^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `func`
[INFO] [stdout]    --> src/context.rs:477:21
[INFO] [stdout]     |
[INFO] [stdout] 477 |         if let Some(func) = self.functions.remove(name) {
[INFO] [stdout]     |                     ^^^^ help: if this is intentional, prefix it with an underscore: `_func`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:530:13
[INFO] [stdout]     |
[INFO] [stdout] 530 |         let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:553:13
[INFO] [stdout]     |
[INFO] [stdout] 553 |         let key = if var.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:577:13
[INFO] [stdout]     |
[INFO] [stdout] 577 |         let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/context.rs:594:13
[INFO] [stdout]     |
[INFO] [stdout] 594 |         let key = if name.chars().nth(0).unwrap().to_digit(10).is_some() {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `end`
[INFO] [stdout]   --> src/lexer.rs:17:49
[INFO] [stdout]    |
[INFO] [stdout] 17 |             Error::UnrecognizedChar(start, chr, end) => {
[INFO] [stdout]    |                                                 ^^^ help: if this is intentional, prefix it with an underscore: `_end`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/eval.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |     let mut pipeline: &mut PipeSequence = &mut pipeline.pipe_sequence;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `end` is never read
[INFO] [stdout]    --> src/ast.rs:216:23
[INFO] [stdout]     |
[INFO] [stdout] 216 |         let mut end = 0;
[INFO] [stdout]     |                       ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 226 |                         end = i;
[INFO] [stdout]     |                         ------- `end` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/jobs.rs:493:9
[INFO] [stdout]     |
[INFO] [stdout] 493 |     let mut status = result;
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopped` is assigned to, but never used
[INFO] [stdout]    --> src/jobs.rs:519:13
[INFO] [stdout]     |
[INFO] [stdout] 519 |         let mut stopped = false;
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_stopped` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `stopped` is never read
[INFO] [stdout]    --> src/jobs.rs:534:17
[INFO] [stdout]     |
[INFO] [stdout] 534 |                 stopped = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `status`
[INFO] [stdout]    --> src/jobs.rs:671:33
[INFO] [stdout]     |
[INFO] [stdout] 671 |         WaitStatus::Exited(pid, status) => {
[INFO] [stdout]     |                                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `job` is never read
[INFO] [stdout]    --> src/builtins.rs:139:71
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let mut job: Option<std::rc::Rc<std::cell::RefCell<jobs::Job>>> = None;
[INFO] [stdout]     |                                                                       ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 143 |             job = shell::get_job(pid);
[INFO] [stdout]     |             --- `job` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `job` is never read
[INFO] [stdout]    --> src/builtins.rs:174:71
[INFO] [stdout]     |
[INFO] [stdout] 174 |     let mut job: Option<std::rc::Rc<std::cell::RefCell<jobs::Job>>> = None;
[INFO] [stdout]     |                                                                       ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 178 |             job = shell::get_job(pid);
[INFO] [stdout]     |             --- `job` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:384:9
[INFO] [stdout]     |
[INFO] [stdout] 384 |     let mut lexer = Lexer::new(string.as_str());
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:675:9
[INFO] [stdout]     |
[INFO] [stdout] 675 |     let mut file = if filename.contains('/') {
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:693:9
[INFO] [stdout]     |
[INFO] [stdout] 693 |     let mut lexer = Lexer::new(contents.as_str());
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mask`
[INFO] [stdout]    --> src/trap.rs:421:20
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn sig_suspend(mask: &signal::SigSet) {
[INFO] [stdout]     |                    ^^^^ help: if this is intentional, prefix it with an underscore: `_mask`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/eval.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |     let mut pipeline: &mut PipeSequence = &mut pipeline.pipe_sequence;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_profile` is never used
[INFO] [stdout]    --> src/main.rs:287:4
[INFO] [stdout]     |
[INFO] [stdout] 287 | fn read_profile() -> Result<(), Box<dyn Error>>{
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/shell.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub struct Shell {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     curr_directory: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 73 |     physical_directory: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 74 |     //jobs
[INFO] [stdout] 75 |     jobctl: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 76 |     job_warning: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 77 |     background_pid: Pid,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 78 |     tty_fd: i32,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     root_pid: Pid,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 85 |     path: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     functions: HashMap<String, FunctionBody>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `load_history`, `background_jobs`, `is_background_job`, `get_current_job`, and `push_context` are never used
[INFO] [stdout]    --> src/shell.rs:151:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl Shell {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 151 |     pub fn load_history(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     pub fn background_jobs(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 202 |     pub fn is_background_job(&self, job_id: JobId) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 223 |     pub fn get_current_job(&self) -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 233 |     pub fn push_context(&mut self, context: Context) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `load_history` is never used
[INFO] [stdout]    --> src/shell.rs:452:8
[INFO] [stdout]     |
[INFO] [stdout] 452 | pub fn load_history() {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_job` is never used
[INFO] [stdout]    --> src/shell.rs:505:8
[INFO] [stdout]     |
[INFO] [stdout] 505 | pub fn get_current_job() -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `background_jobs` is never used
[INFO] [stdout]    --> src/shell.rs:520:8
[INFO] [stdout]     |
[INFO] [stdout] 520 | pub fn background_jobs() -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_background_job` is never used
[INFO] [stdout]    --> src/shell.rs:525:8
[INFO] [stdout]     |
[INFO] [stdout] 525 | pub fn is_background_job(job_id: JobId) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `push_context` is never used
[INFO] [stdout]    --> src/shell.rs:584:8
[INFO] [stdout]     |
[INFO] [stdout] 584 | pub fn push_context(context: Context) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `make_readonly` and `export` are never used
[INFO] [stdout]   --> src/context.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Var {
[INFO] [stdout]    | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn make_readonly(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     fn export(&mut self) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `push_context` and `all_vars` are never used
[INFO] [stdout]    --> src/context.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl ContextManager {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  73 |     pub fn push_context(&mut self, context: Context) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 319 |     pub fn all_vars(&self) -> BTreeMap<String, Rc<RefCell<Var>>> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `make_readonly_func` is never used
[INFO] [stdout]    --> src/context.rs:476:12
[INFO] [stdout]     |
[INFO] [stdout] 439 | impl Context {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 476 |     pub fn make_readonly_func(&mut self, name: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `take_until_seen_twice` is never used
[INFO] [stdout]    --> src/lexer.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 251 | impl<'input> Lexer<'input> {
[INFO] [stdout]     | -------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 292 |     fn take_until_seen_twice<F>(&mut self, start: usize, mut end: usize,  mut terminate: F)
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NewlineList` is never constructed
[INFO] [stdout]    --> src/ast.rs:813:12
[INFO] [stdout]     |
[INFO] [stdout] 813 | pub struct NewlineList {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_if_function` is never used
[INFO] [stdout]    --> src/eval.rs:555:4
[INFO] [stdout]     |
[INFO] [stdout] 555 | fn check_if_function(cmd_name: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DOWAIT_WAITCMD` is never used
[INFO] [stdout]   --> src/jobs.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | const DOWAIT_WAITCMD: usize = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jobctl` is never read
[INFO] [stdout]   --> src/jobs.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct JobControl {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub jobctl: bool,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `background_jobs`, `is_background_job`, `get_current_job`, and `clear_completed_jobs` are never used
[INFO] [stdout]    --> src/jobs.rs:92:12
[INFO] [stdout]     |
[INFO] [stdout]  51 | impl JobControl {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  92 |     pub fn background_jobs(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  96 |     pub fn is_background_job(&self, job_id: usize) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn get_current_job(&self) -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn clear_completed_jobs(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Waiting` is never constructed
[INFO] [stdout]    --> src/jobs.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 263 | pub enum JobState {
[INFO] [stdout]     |          -------- variant in this enum
[INFO] [stdout] 264 |     Waiting,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `JobState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `sigint`, `waited`, and `used` are never read
[INFO] [stdout]    --> src/jobs.rs:334:9
[INFO] [stdout]     |
[INFO] [stdout] 322 | pub struct Job {
[INFO] [stdout]     |            --- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 334 |     pub sigint: bool,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout] 335 |     /// A boolean for if the job has been waited on.
[INFO] [stdout] 336 |     pub waited: bool,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout] 337 |     /// A boolean for if the job has been used.
[INFO] [stdout] 338 |     pub used: bool,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `S_RESET` is never used
[INFO] [stdout]   --> src/trap.rs:27:7
[INFO] [stdout]    |
[INFO] [stdout] 27 | const S_RESET: usize = 5;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_USER_PROMPT` is never used
[INFO] [stdout]  --> src/var.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const REG_USER_PROMPT: &str = "$ ";
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SUP_USER_PROMPT` is never used
[INFO] [stdout]   --> src/var.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SUP_USER_PROMPT: &str = "# ";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Var` is never constructed
[INFO] [stdout]   --> src/var.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Var {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/var.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Var {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 20 |     pub fn new(name: &str, value: &str) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `VarDataUtils` is never used
[INFO] [stdout]   --> src/var.rs:38:11
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub trait VarDataUtils<V> {
[INFO] [stdout]    |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarData` is never constructed
[INFO] [stdout]   --> src/var.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct VarData {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/var.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  54 | impl VarData {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  55 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  94 |     pub fn get_current_context_pos(&self) -> isize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  98 |     fn convert_env(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     fn path(&self) -> Vec<&str> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 109 |     fn add_var(&mut self, key: &str, value: Var, pos: isize) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     fn check_levels(&mut self, key: &str) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn push_var_stack(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 |     pub fn pop_var_stack(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     fn lookup_internal(&self, key: &str) -> Option<&str> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn lookup_var(&self, key: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 189 |     pub fn lookup_command(&self, cmd: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 208 |     fn trim(word: &str) -> String {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ImportantVars` is never constructed
[INFO] [stdout]    --> src/var.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct ImportantVars {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `make_into_vars`, `export_env_vars`, `set_path`, and `set_var` are never used
[INFO] [stdout]    --> src/var.rs:305:12
[INFO] [stdout]     |
[INFO] [stdout] 304 | impl ImportantVars {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] 305 |     pub fn make_into_vars(self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 311 |     pub fn export_env_vars(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 330 |     pub fn set_path(&mut self, path: &str) {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 335 |     pub fn set_var(&mut self, var: Var) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         FORKED.store(state, std::sync::atomic::Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         FORKED.load(std::sync::atomic::Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/jobs.rs:493:9
[INFO] [stdout]     |
[INFO] [stdout] 493 |     let mut status = result;
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopped` is assigned to, but never used
[INFO] [stdout]    --> src/jobs.rs:519:13
[INFO] [stdout]     |
[INFO] [stdout] 519 |         let mut stopped = false;
[INFO] [stdout]     |             ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_stopped` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `stopped` is never read
[INFO] [stdout]    --> src/jobs.rs:534:17
[INFO] [stdout]     |
[INFO] [stdout] 534 |                 stopped = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/context.rs:375:13
[INFO] [stdout]     |
[INFO] [stdout] 375 |             &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 375 |             let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/context.rs:378:13
[INFO] [stdout]     |
[INFO] [stdout] 378 |             &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 378 |             let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:30:17
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn iter(&self) -> std::slice::Iter<AndOr> {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn iter(&self) -> std::slice::Iter<'_, AndOr> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |     pub fn iter(&self) -> std::slice::Iter<Command> {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 68 |     pub fn iter(&self) -> std::slice::Iter<'_, Command> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:71:21
[INFO] [stdout]    |
[INFO] [stdout] 71 |     pub fn iter_mut(&mut self) -> std::slice::IterMut<Command> {
[INFO] [stdout]    |                     ^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 71 |     pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, Command> {
[INFO] [stdout]    |                                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `status`
[INFO] [stdout]    --> src/jobs.rs:671:33
[INFO] [stdout]     |
[INFO] [stdout] 671 |         WaitStatus::Exited(pid, status) => {
[INFO] [stdout]     |                                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:26:48
[INFO] [stdout]    |
[INFO] [stdout] 26 |         WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap()
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         EXIT_STATUS.store(status, Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         EXIT_STATUS.load(Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/eval.rs:601:5
[INFO] [stdout]     |
[INFO] [stdout] 601 |     parse_tree(&mut compound_list.0.0);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 601 |     let _ = parse_tree(&mut compound_list.0.0);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |         BLOCK_SIGNALS.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  38 - static mut BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  38 + static BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |         GOT_SIGCHLD.store(val, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         GOT_SIGCHLD.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:189:13
[INFO] [stdout]     |
[INFO] [stdout] 189 |             GOT_SIGCHLD.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:211:17
[INFO] [stdout]     |
[INFO] [stdout] 211 |             if !SUPRESS_SIGINT.load(Ordering::Relaxed) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  34 - static mut SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  34 + static SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:214:13
[INFO] [stdout]     |
[INFO] [stdout] 214 |             SIGINT_PENDING.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         SIGINT_PENDING.store(false, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]  --> src/log.rs:7:2
[INFO] [stdout]   |
[INFO] [stdout] 7 |     PRINT_OUT.store(value, Ordering::Relaxed);
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]   |
[INFO] [stdout] 3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/log.rs:13:2
[INFO] [stdout]    |
[INFO] [stdout] 13 |     PRINT_OUT.load(Ordering::Relaxed)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout]  3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `job` is never read
[INFO] [stdout]    --> src/builtins.rs:139:71
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let mut job: Option<std::rc::Rc<std::cell::RefCell<jobs::Job>>> = None;
[INFO] [stdout]     |                                                                       ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 143 |             job = shell::get_job(pid);
[INFO] [stdout]     |             --- `job` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `job` is never read
[INFO] [stdout]    --> src/builtins.rs:174:71
[INFO] [stdout]     |
[INFO] [stdout] 174 |     let mut job: Option<std::rc::Rc<std::cell::RefCell<jobs::Job>>> = None;
[INFO] [stdout]     |                                                                       ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 178 |             job = shell::get_job(pid);
[INFO] [stdout]     |             --- `job` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:384:9
[INFO] [stdout]     |
[INFO] [stdout] 384 |     let mut lexer = Lexer::new(string.as_str());
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:675:9
[INFO] [stdout]     |
[INFO] [stdout] 675 |     let mut file = if filename.contains('/') {
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/builtins.rs:693:9
[INFO] [stdout]     |
[INFO] [stdout] 693 |     let mut lexer = Lexer::new(contents.as_str());
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mask`
[INFO] [stdout]    --> src/trap.rs:421:20
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn sig_suspend(mask: &signal::SigSet) {
[INFO] [stdout]     |                    ^^^^ help: if this is intentional, prefix it with an underscore: `_mask`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rsh` (bin "rsh" test) due to 14 previous errors; 72 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `read_profile` is never used
[INFO] [stdout]    --> src/main.rs:287:4
[INFO] [stdout]     |
[INFO] [stdout] 287 | fn read_profile() -> Result<(), Box<dyn Error>>{
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/shell.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub struct Shell {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     curr_directory: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 73 |     physical_directory: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 74 |     //jobs
[INFO] [stdout] 75 |     jobctl: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 76 |     job_warning: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 77 |     background_pid: Pid,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 78 |     tty_fd: i32,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     root_pid: Pid,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 85 |     path: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     functions: HashMap<String, FunctionBody>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `load_history`, `background_jobs`, `is_background_job`, `get_current_job`, and `push_context` are never used
[INFO] [stdout]    --> src/shell.rs:151:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl Shell {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 151 |     pub fn load_history(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     pub fn background_jobs(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 202 |     pub fn is_background_job(&self, job_id: JobId) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 223 |     pub fn get_current_job(&self) -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 233 |     pub fn push_context(&mut self, context: Context) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `load_history` is never used
[INFO] [stdout]    --> src/shell.rs:452:8
[INFO] [stdout]     |
[INFO] [stdout] 452 | pub fn load_history() {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_job` is never used
[INFO] [stdout]    --> src/shell.rs:505:8
[INFO] [stdout]     |
[INFO] [stdout] 505 | pub fn get_current_job() -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `background_jobs` is never used
[INFO] [stdout]    --> src/shell.rs:520:8
[INFO] [stdout]     |
[INFO] [stdout] 520 | pub fn background_jobs() -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_background_job` is never used
[INFO] [stdout]    --> src/shell.rs:525:8
[INFO] [stdout]     |
[INFO] [stdout] 525 | pub fn is_background_job(job_id: JobId) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `push_context` is never used
[INFO] [stdout]    --> src/shell.rs:584:8
[INFO] [stdout]     |
[INFO] [stdout] 584 | pub fn push_context(context: Context) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `make_readonly` and `export` are never used
[INFO] [stdout]   --> src/context.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Var {
[INFO] [stdout]    | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn make_readonly(&mut self) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     fn export(&mut self) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `push_context` and `all_vars` are never used
[INFO] [stdout]    --> src/context.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl ContextManager {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  73 |     pub fn push_context(&mut self, context: Context) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 319 |     pub fn all_vars(&self) -> BTreeMap<String, Rc<RefCell<Var>>> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `make_readonly_func` is never used
[INFO] [stdout]    --> src/context.rs:476:12
[INFO] [stdout]     |
[INFO] [stdout] 439 | impl Context {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 476 |     pub fn make_readonly_func(&mut self, name: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `take_until_seen_twice` is never used
[INFO] [stdout]    --> src/lexer.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 251 | impl<'input> Lexer<'input> {
[INFO] [stdout]     | -------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 292 |     fn take_until_seen_twice<F>(&mut self, start: usize, mut end: usize,  mut terminate: F)
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NewlineList` is never constructed
[INFO] [stdout]    --> src/ast.rs:813:12
[INFO] [stdout]     |
[INFO] [stdout] 813 | pub struct NewlineList {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> /opt/rustwide/target/debug/build/rsh-1ab95f0d50d6d3b3/out/grammar.rs:775:16
[INFO] [stdout]     |
[INFO] [stdout] 774 |     impl CompleteCommandParser {
[INFO] [stdout]     |     -------------------------- associated function in this implementation
[INFO] [stdout] 775 |         pub fn new() -> CompleteCommandParser {
[INFO] [stdout]     |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_if_function` is never used
[INFO] [stdout]    --> src/eval.rs:555:4
[INFO] [stdout]     |
[INFO] [stdout] 555 | fn check_if_function(cmd_name: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DOWAIT_WAITCMD` is never used
[INFO] [stdout]   --> src/jobs.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | const DOWAIT_WAITCMD: usize = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jobctl` is never read
[INFO] [stdout]   --> src/jobs.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct JobControl {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub jobctl: bool,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `background_jobs`, `is_background_job`, `get_current_job`, and `clear_completed_jobs` are never used
[INFO] [stdout]    --> src/jobs.rs:92:12
[INFO] [stdout]     |
[INFO] [stdout]  51 | impl JobControl {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  92 |     pub fn background_jobs(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  96 |     pub fn is_background_job(&self, job_id: usize) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub fn get_current_job(&self) -> Option<Rc<RefCell<Job>>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn clear_completed_jobs(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Waiting` is never constructed
[INFO] [stdout]    --> src/jobs.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 263 | pub enum JobState {
[INFO] [stdout]     |          -------- variant in this enum
[INFO] [stdout] 264 |     Waiting,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `JobState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `sigint`, `waited`, and `used` are never read
[INFO] [stdout]    --> src/jobs.rs:334:9
[INFO] [stdout]     |
[INFO] [stdout] 322 | pub struct Job {
[INFO] [stdout]     |            --- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 334 |     pub sigint: bool,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout] 335 |     /// A boolean for if the job has been waited on.
[INFO] [stdout] 336 |     pub waited: bool,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout] 337 |     /// A boolean for if the job has been used.
[INFO] [stdout] 338 |     pub used: bool,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `S_RESET` is never used
[INFO] [stdout]   --> src/trap.rs:27:7
[INFO] [stdout]    |
[INFO] [stdout] 27 | const S_RESET: usize = 5;
[INFO] [stdout]    |       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REG_USER_PROMPT` is never used
[INFO] [stdout]  --> src/var.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const REG_USER_PROMPT: &str = "$ ";
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SUP_USER_PROMPT` is never used
[INFO] [stdout]   --> src/var.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SUP_USER_PROMPT: &str = "# ";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Var` is never constructed
[INFO] [stdout]   --> src/var.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Var {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/var.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Var {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 20 |     pub fn new(name: &str, value: &str) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `VarDataUtils` is never used
[INFO] [stdout]   --> src/var.rs:38:11
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub trait VarDataUtils<V> {
[INFO] [stdout]    |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarData` is never constructed
[INFO] [stdout]   --> src/var.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct VarData {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/var.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  54 | impl VarData {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  55 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  94 |     pub fn get_current_context_pos(&self) -> isize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  98 |     fn convert_env(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     fn path(&self) -> Vec<&str> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 109 |     fn add_var(&mut self, key: &str, value: Var, pos: isize) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     fn check_levels(&mut self, key: &str) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn push_var_stack(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 |     pub fn pop_var_stack(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     fn lookup_internal(&self, key: &str) -> Option<&str> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn lookup_var(&self, key: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 189 |     pub fn lookup_command(&self, cmd: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 208 |     fn trim(word: &str) -> String {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ImportantVars` is never constructed
[INFO] [stdout]    --> src/var.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct ImportantVars {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `make_into_vars`, `export_env_vars`, `set_path`, and `set_var` are never used
[INFO] [stdout]    --> src/var.rs:305:12
[INFO] [stdout]     |
[INFO] [stdout] 304 | impl ImportantVars {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] 305 |     pub fn make_into_vars(self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 311 |     pub fn export_env_vars(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 330 |     pub fn set_path(&mut self, path: &str) {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 335 |     pub fn set_var(&mut self, var: Var) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         FORKED.store(state, std::sync::atomic::Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/shell.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         FORKED.load(std::sync::atomic::Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 26 - pub static mut FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 26 + pub static FORKED: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/context.rs:375:13
[INFO] [stdout]     |
[INFO] [stdout] 375 |             &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 375 |             let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/context.rs:378:13
[INFO] [stdout]     |
[INFO] [stdout] 378 |             &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 378 |             let _ = &context.borrow().readonly_functions.iter().for_each(|x| {funcs.insert(x.clone());});
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:30:17
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn iter(&self) -> std::slice::Iter<AndOr> {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn iter(&self) -> std::slice::Iter<'_, AndOr> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |     pub fn iter(&self) -> std::slice::Iter<Command> {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 68 |     pub fn iter(&self) -> std::slice::Iter<'_, Command> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/ast.rs:71:21
[INFO] [stdout]    |
[INFO] [stdout] 71 |     pub fn iter_mut(&mut self) -> std::slice::IterMut<Command> {
[INFO] [stdout]    |                     ^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 71 |     pub fn iter_mut(&mut self) -> std::slice::IterMut<'_, Command> {
[INFO] [stdout]    |                                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:26:48
[INFO] [stdout]    |
[INFO] [stdout] 26 |         WaitStatus::from_raw(Pid::from_raw(-1),EXIT_STATUS.load(Ordering::Relaxed)).unwrap()
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         EXIT_STATUS.store(status, Ordering::Relaxed);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/eval.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         EXIT_STATUS.load(Ordering::Relaxed)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 21 - pub static mut EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout] 21 + pub static EXIT_STATUS: AtomicI32 = AtomicI32::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/eval.rs:601:5
[INFO] [stdout]     |
[INFO] [stdout] 601 |     parse_tree(&mut compound_list.0.0);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 601 |     let _ = parse_tree(&mut compound_list.0.0);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |         BLOCK_SIGNALS.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  38 - static mut BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  38 + static BLOCK_SIGNALS: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |         GOT_SIGCHLD.store(val, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         GOT_SIGCHLD.load(Ordering::Relaxed)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:189:13
[INFO] [stdout]     |
[INFO] [stdout] 189 |             GOT_SIGCHLD.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  30 - static mut GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  30 + static GOT_SIGCHLD: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:211:17
[INFO] [stdout]     |
[INFO] [stdout] 211 |             if !SUPRESS_SIGINT.load(Ordering::Relaxed) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  34 - static mut SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  34 + static SUPRESS_SIGINT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:214:13
[INFO] [stdout]     |
[INFO] [stdout] 214 |             SIGINT_PENDING.store(true, Ordering::Relaxed);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/trap.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |         SIGINT_PENDING.store(false, Ordering::Relaxed);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  32 - static mut SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  32 + static SIGINT_PENDING: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]  --> src/log.rs:7:2
[INFO] [stdout]   |
[INFO] [stdout] 7 |     PRINT_OUT.store(value, Ordering::Relaxed);
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]   |
[INFO] [stdout]   = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]   |
[INFO] [stdout] 3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout] 3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/log.rs:13:2
[INFO] [stdout]    |
[INFO] [stdout] 13 |     PRINT_OUT.load(Ordering::Relaxed)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout]  3 - static mut PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]  3 + static PRINT_OUT: AtomicBool = AtomicBool::new(false);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rsh` (bin "rsh") due to 14 previous errors; 74 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c", kill_on_drop: false }`
[INFO] [stdout] c990ee687da9904a7c0468e30239d953a2cc318465ba5df140b78684e7a4115c
